<?php
namespace app\api\validate;

use think\Validate;

class TemplateValidate extends Validate
{
    protected $rule =   [
        'device_code'  => 'require',
        'type'  	   => 'require'
    ];
    
    protected $message  =   [
        'device_code.require' => '设备id必须填写',
        'type.require' 		  => '类型必须填写'
    ];
    
    protected $scene = [
        'view'  =>  ['device_code','type']
    ];
}
